package org.shiwen.week12;

import java.util.Scanner;

public class String2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个字符串：");
        System.out.print("str1：");
        String str1 = sc.next();
        System.out.print("str2：");
        String str2 = sc.next();
        System.out.println(str1==str2);
        System.out.println(str1.equals(str2));
    }
}
